﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data {
	public partial class PlatBillMap
		: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<PlatBill> {
		public PlatBillMap() {
			// table
			ToTable("mc_PlatBill", "dbo");

			// keys
			HasKey(t => t.Id);

			// Properties
			Property(t => t.Id)
				.HasColumnName("Id")
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
				.IsRequired();
			Property(t => t.Balance)
				.HasColumnName("Balance")
				.HasPrecision(18, 6)
				.IsRequired();
			Property(t => t.Unconfirmed)
				.HasColumnName("Unconfirmed")
				.HasPrecision(18, 6)
				.IsRequired();
			Property(t => t.Deposited)
				.HasColumnName("Deposited")
				.HasPrecision(18, 6)
				.IsRequired();
			Property(t => t.Depositeding)
				.HasColumnName("Depositeding")
				.HasPrecision(18, 6)
				.IsRequired();
			Property(t => t.ChannelBalance)
				.HasColumnName("ChannelBalance")
				.HasPrecision(18, 6)
				.IsRequired();

			// Relationships
		}
	}
}
